<template>
  <div>
    <h1>aaaaaa</h1>
    <p v-if="userStore.token">欢迎回来，您已登录，token: {{ userStore.token }}</p>
    <el-button @click="yyss">aaaa</el-button>
  </div>
</template>
<script setup>
import router from '@/router'
import { useUserStore } from '@/stores'

const userStore = useUserStore()

const yyss = () => {
  router.push('/layout')
}
</script>
<style scoped lang="scss"></style>
